import config from '../config/index';

const token_type = config.COOKIE_TYPE;

export function setToken(token) {
	uni.setStorageSync(token_type, token);
}

export function getToken() {
	return uni.getStorageSync(token_type);
}

export function clearToken() {
	uni.removeStorageSync(token_type)
}